package hn.cch.controller.v1;

import hn.cch.service.FileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping(value = "/v1/file")
@RestController
public class FileController {

    @Autowired
    private FileService fileService;

    @GetMapping(value = "getZipFile")
    public ResponseEntity<String> getZipFile(){
        fileService.getZipFile();
        return new ResponseEntity<>(HttpStatus.OK);
    }

}
